package sk.naive.talker.command;

import sk.naive.talker.User;
import sk.naive.talker.props.PropertyStoreException;

import java.rmi.RemoteException;

/**
 *
 * @author <a href="mailto:richter@bgs.sk">Richard Richter</a>
 * @version $Revision: 1.12 $ $Date: 2005/01/08 14:17:35 $
 */
public class Tell extends AddressedPrivateMessageCommand {
	public String getSenderMessageKey(String message) {
		return "tell.sender";
	}

	public String getRecipientMessageKey(String message) {
		return "tell.recipient";
	}

	protected void customExec(User recipient, String message) throws RemoteException, CommandException, PropertyStoreException {
		user.set(LastTell.UPROP_LTELL_RCPT, recipient.getLogin());
	}
}
